<?php if (!defined('THINK_PATH')) exit();?>﻿
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>上传图片</title>
	</head>
	<script type="text/javascript">
        function run(){
            var imgId=document.getElementById("img");
            if(imgId.style.display=="block")
                imgId.style.display="none";
            else
                imgId.style.display="block";
        }

	</script>
	<body>
		<form name="frm" method="post" action="/admin.php?c=article&a=upload" enctype="multipart/form-data">
			<input name='upfile' type='file'/>
			<br>
			<img src="<?php echo ($article["a_photo"]); ?>" id="img" alt=""/>
			<br><br>
			<div class="am-form-group" >
				<div class="am-u-sm-12 am-u-sm-push-12">
					<button type="submit" onclick="run()" class="am-btn am-btn-primary tpl-btn-bg-color-success ">
						上传
					</button>
				</div>
			</div>
			<input type="hidden" value="<?php echo ($article["a_id"]); ?>" name="a_id">
		</form>


	</body>
	</html>